
namespace ZR.Model.BaseManage.Dto
{
    /// <summary>
    /// plc信息查询对象
    /// </summary>
    public class BasePlcQueryDto : PagerInfo 
    {
        /// <summary>
        /// plc编号 
        /// </summary>
        public string PlcCode { get; set; }
        /// <summary>
        /// plc名称 
        /// </summary>
        public string PlcName { get; set; }
        /// <summary>
        /// plc类型(1500,1200) 
        /// </summary>
        public string PlcType { get; set; }
    }

    /// <summary>
    /// plc信息输入输出对象
    /// </summary>
    public class BasePlcDto
    {
        /// <summary>
        /// plc编号 
        /// </summary>
        [Required(ErrorMessage = "plc编号不能为空")]
        public string PlcCode { get; set; }

        /// <summary>
        /// plc名称 
        /// </summary>
        [Required(ErrorMessage = "plc名称不能为空")]
        public string PlcName { get; set; }

        /// <summary>
        /// plc类型(1500,1200) 
        /// </summary>
        [Required(ErrorMessage = "plc类型(1500,1200)不能为空")]
        public string PlcType { get; set; }

        /// <summary>
        /// ip 
        /// </summary>
        [Required(ErrorMessage = "ip不能为空")]
        public string PlcIp { get; set; }

        /// <summary>
        /// 端口 
        /// </summary>
        [Required(ErrorMessage = "端口不能为空")]
        public int PlcPort { get; set; }

        /// <summary>
        /// 插槽 
        /// </summary>
        public string PlcSlot { get; set; }

        /// <summary>
        /// 机架 
        /// </summary>
        public string PlcRack { get; set; }

        /// <summary>
        /// 启用标志（0禁用1启用） 
        /// </summary>
        [Required(ErrorMessage = "启用标志（0禁用1启用）不能为空")]
        public int Enabled { get; set; }

        /// <summary>
        /// 连接状态（0未连接1已连接） 
        /// </summary>
        [Required(ErrorMessage = "连接状态（0未连接1已连接）不能为空")]
        public int ConnState { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        public string Remark { get; set; }

    }
}